package com.xbe.road.domain;

import com.xbe.common.annotation.Excel;
import com.xbe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 道路设置对象 road
 *
 * @author liuzhiting
 * @date 2020-06-18
 */
public class Road extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 道路名称
     */
    @Excel(name = "道路名称")
    private String name;

    /**
     * 所属地区
     */
    @Excel(name = "所属地区")
    private String region;

    /**
     * 所属用户
     */
    private Long userId;

    /**
     * 所属用户
     */
    @Excel(name = "所属用户")
    private String userName;

    /**
     * 道路是否指定此用户标识  编辑页面需要
     */
    private boolean Roadflag = false;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setRegion(String region)
    {
        this.region = region;
    }

    public String getRegion()
    {
        return region;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }


    public boolean isRoadflag()
    {
        return Roadflag;
    }

    public void setRoadflag(boolean roadflag)
    {
        Roadflag = roadflag;
    }

    @Override
    public String toString()
    {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("name", getName()).append("region", getRegion()).append("userId", getUserId()).append("userName", getUserName()).toString();
    }
}
